cmake_minimum_required(VERSION 3.17)
project(third_party_library C)
find_package(Threads REQUIRED COMPONENTS filesystem system)

#这是第三方库，而不是自己生成的静态动态库
# check if boost was found
if(Threads_FOUND)
    message ("Threads found")
else()
    message (FATAL_ERROR "Cannot find Threads")
endif()


set(CMAKE_C_STANDARD 99)

add_executable(third_party_library main.c)
target_link_libraries(third_party_library ${CMAKE_THREAD_LIBS_INIT})
